package com.exce;

/**
 * @Author WaveHi
 * @Date 1/8/2021 上午 11:57
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 测试Person类
 */
public class PersonDemo {

    public static void main(String[] args) {

        //获取Person的对象
        Person p1 = new Person();

        //通过对象调用其功能
        p1.say("Wow!");

        //设置p1的属性
        p1.name = "Tom";
        p1.age = 12;

        //获取p1的属性值
        System.out.println(p1.name);
        System.out.println(p1.age);


    }

}
